﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.Migrations;
using RepoPattern315.Data.Models;
    
namespace RepoPattern315.Data
{
    public static class Seeder
    {
        public static void Seed(MoviesDbContext db){
            //    context.People.AddOrUpdate(
            //      p => p.FullName,
            //      new Person { FullName = "Andrew Peters" },
            //      new Person { FullName = "Brice Lambson" },
            //      new Person { FullName = "Rowan Miller" }
            //    );

            db.Movies.AddOrUpdate(

                m => new {m.MovieId,  m.Title, m.IsWatached, m.Description },
                new Movie() {MovieId=188, Title="Mad Max",     fg
                );
        }

    }
}
